Feature: Publish my complaint
	As a user
	I want to publish my complaint
	So that everyone can see it
	
Background:
  Given I am logged in as "renaldi"
  And I am on the "Index" page
	
Scenario: Go to my account page
	Given I am on the Index page
	When I follow "Your Account"
	Then I should be on my personal account page

Scenario: Go to my unpublished complaint
	Given I am on the "Your Account" page
	When I click on "Unpublished Complaint"
	Then I should be on my "Unpublished Complaint" page

Scenario: Publish a complaint
	Given I am on the "Unpublished Complaint" page
	Then I should see a complaint with title "Windows Vista Sucks"
	And I should see a button named "Publish"
	And when I press the button "Publish"
	Then it should show me a pop up page filled with the complaint description
	Then I should see "OK" button
	When I press on the "OK" button
	Then I should arrive on "Index Page"
	And I should see a new complaint with title "Windows Vista Sucks"
	
